﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Mianji
    {
        private double rad;
        private int lon;
        private int weidth;
        public double Rad
        {
            get { return this.rad; }
            set
            {
                if (rad <= 0)
                {
                    value = 0;
                }
                rad = value;
            }
        }
        public int Lon
        {
            get { return this.lon; }
            set
            {
                if (lon <= 0)
                {
                    value = 0;
                }
                lon = value;
            }
        }

        public int Weidth { get { return this.weidth; } set { weidth = value; } }

        public double S(double rad)
        {

            return 3.14 * rad * rad;
        }
        public int S(int lon, int weidth)
        {
            return lon * weidth;
        }


    }
}
